package com.wyj.wuliwuli.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Data
@Entity
@Table(name = "wuli_video_comment")
public class WuliVideoComment extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "video_id", columnDefinition = "bigint(20) COMMENT '视频ID'")
    private WuliVideo video;

    @ManyToOne
    @JoinColumn(name = "user_id", columnDefinition = "bigint(20) COMMENT '来自用户ID'")
    private WuliUser user;

    @Column(columnDefinition="varchar(500) COMMENT '评论内容'")
    private String msg;

}
